package cn.itsource.org.ro;

import cn.itsource.org.domain.Employee;
import lombok.Data;
import org.springframework.beans.BeanUtils;

@Data
public class EmployeeRo {
    private String username;
    private String email;
    private String phone;

    private String password;
    private String comfirmPassword;

    public static Employee EmployeeRotoEmployee(EmployeeRo employeeRo){
        Employee employee = new Employee();
        BeanUtils.copyProperties(employeeRo,employee);
        return employee;
    }
}
